package com.syedu.day06.v2;

import java.time.LocalDate;

/**
 * description：员工类
 * @author Administrator
 * @date 2022/3/15 13:33
 */
public class Employee {
    /**属性*/
    String name;
    int age;
    LocalDate hireDate;
    double salary;

    /**构造方法*/
    public Employee() {

    }

    public Employee(String _name, int _age, LocalDate _hireDate, double _salary) {
        name = _name;
        age = _age;
        hireDate = _hireDate;
        salary = _salary;
    }

    /**行为*/
    public void work() {
        System.out.println("员工在工作...");
    }
}